<%@ page language="java" contentType="text/html; charset=utf-8"	pageEncoding="utf-8"%>
<%@ include file="/uniform_attestation/head_beforesignon.jsp"%>
<%@ taglib uri="ctp-tag" prefix="ctp"%>
<%   
	String jspName = "logon.jsp";
    String ctpLoginUrl=request.getParameter("ctpLoginUrl");
    String ctpLoginItem=request.getParameter("ctpLoginItem");   
    if(ctpLoginItem!=null&&ctpLoginItem!=""){	
       if(ctpLoginUrl.indexOf("?")>0){	 
    	  ctpLoginUrl=ctpLoginUrl.replaceAll("\\?","%3F");
       }	  
       if(ctpLoginUrl.indexOf("&")>0){	 
    	   ctpLoginUrl=ctpLoginUrl.replaceAll("&","%26");
       }
       if(ctpLoginUrl.indexOf("=")>0){	     
           ctpLoginUrl=ctpLoginUrl.replaceAll("=","%3D");
      }
      jspName=jspName+"?ctpLoginItem="+ctpLoginItem+"&ctpLoginUrl="+ctpLoginUrl;
   }
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html style="margin:0px;padding:0px;overflow:hidden;width:100%;height:100%;">
<head>
<script type="text/javascript" src="<ctp:out name='fullPath'/>js/changeskins.js"></script>
<ctp:include items="messagebox,statusbar" />
<script type="text/javascript">
		/*var waitImg="<ctp:out name='fullPath'/>images/"+GetCookie("save_skin")+"/statusbar/progress.gif";
		var waitImgFull="<ctp:out name='fullPath'/>images/"+GetCookie("save_skin")+"/statusbar/progress_full.gif";
		if(CTP_WEB_LANG && CTP_WEB_LANG =="zh_CN"){
			document.write("<div id='SYS_LOADING' style='height:100%;width:100%;background-color:#ffffff;position:absolute;z-index:2012;'><div style='font-weight:bold;width:100%;color:gray;text-align:center;top:"+parseInt(document.documentElement.clientHeight/2)+"px;position:absolute;'><img id='waitingbar' src=\""+waitImg+"\" style='vertical-align:middle'/><br/>系统加载中，请稍候...</div></div>");
		}
		else
		{
			document.write("<div id='SYS_LOADING' style='height:100%;width:100%;background-color:#ffffff;position:absolute;z-index:2012;'><div style='font-weight:bold;width:100%;color:gray;text-align:center;top:"+parseInt(document.documentElement.clientHeight/2)+"px;position:absolute;'><img id='waitingbar' src=\""+waitImg+"\" style='vertical-align:middle'/><br/>System is loading , please wait ...</div></div>");
		}*/
		$(function(){
			$("iframe[name=index]").hide();
		});
		
	</script>
<script type='text/javascript'>
	var ctpTAB;
	//var statusbar;
	//statusbar为兼容变量,statusbar在firefox下无效,后更改为ctpStatusBar
	var ctpStatusBar,statusbar;
	function init(){
		//statusbar = new ctp.ui.statusbar({
		//isVisible:false,
		//renderTo:'body'
		//});
		/*var waitendfn=[
			function(){
				$("#waitingbar").hide();
				$("#fullbar").show().delay(5000,"fx");
				//gonext();
			},
			function(){
				$("#SYS_LOADING").hide();
				gonext();
			},
			function(){
				$("iframe[name=index]").show();
			}
		];
		$(document).queue("fx",waitendfn);
		var gonext = function(){
			$(document).dequeue("fx");
		}
		gonext();
		*/
		//$("#waitingbar").attr("src",waitImgFull);
		setTimeout(function(){
			$("iframe[name=index]").show();
			$("#SYS_LOADING").remove();
		},10);
		
	}
</script>
</head>
<body style="width:100%;height:100%;margin: 0px; padding: 0px; overflow: hidden;background-color:#ffffff;"	onload="init()">
<iframe name="index" MARGINHEIGHT="0" MARGINWIDTH="0" FRAMEBORDER="0" WIDTH="100%" SCROLLING="auto" height="100%" SRC="<%=jspName%>"></iframe>
</body>
</html>